mylib=libcal.so
CC=gcc

$(mylib): add.o sub.o
	ar -rc $(mylib) $^
%.o: %.c
	$(CC) -c $<
.PHONY: clean
clean:
	rm -rf $(mylib) ./*.o
.PHONY: output
output:
	mkdir -p mathlib/include
	mkdir -p mathlib/lib
	cp ./*.h mathlib/include
	cp $(mylib) mathlib/lib